Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p.center { text-align: center; color: red; } </style> </head> <body> <h1 class="center">This heading will not be affected</h1> <p class="center">This paragraph will be red and center-aligned.</p> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_syntax_element_class by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:02 GMT --> </html>
Result:
Try it Yourself - © w3schools.com